<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{mmSupplierBean.id}"/>
		<f:event type="preRenderView" listener="#{mmSupplierBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Mm Supplier"/>

	<ui:define name="header">
		Mm Supplier
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty mmSupplierBean.id}">
				Edit existing Mm Supplier
			</c:when>
			<c:otherwise>
				Create a new Mm Supplier
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="mmSupplierBeanMmSupplierSupplierNo" value="Supplier No:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierBeanMmSupplierSupplierNo" required="true" value="#{mmSupplierBean.mmSupplier.supplierNo}"/>
					<h:message for="mmSupplierBeanMmSupplierSupplierNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="mmSupplierBeanMmSupplierSysBusinessType" value="Sys Business Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysBusinessTypeBean.converter}" id="mmSupplierBeanMmSupplierSysBusinessType" value="#{mmSupplierBean.mmSupplier.sysBusinessType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysBusinessTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="mmSupplierBeanMmSupplierSysBusinessType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierStatus" value="Mm Supplier Status:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmSupplierStatusBean.converter}" id="mmSupplierBeanMmSupplierMmSupplierStatus" value="#{mmSupplierBean.mmSupplier.mmSupplierStatus}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmSupplierStatusBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="mmSupplierBeanMmSupplierMmSupplierStatus" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierType" value="Mm Supplier Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmSupplierTypeBean.converter}" id="mmSupplierBeanMmSupplierMmSupplierType" value="#{mmSupplierBean.mmSupplier.mmSupplierType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmSupplierTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="mmSupplierBeanMmSupplierMmSupplierType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierSysTitleName" value="Sys Title Name:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysTitleNameBean.converter}" id="mmSupplierBeanMmSupplierSysTitleName" value="#{mmSupplierBean.mmSupplier.sysTitleName}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTitleNameBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="mmSupplierBeanMmSupplierSysTitleName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierGroup" value="Mm Supplier Group:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmSupplierGroupBean.converter}" id="mmSupplierBeanMmSupplierMmSupplierGroup" value="#{mmSupplierBean.mmSupplier.mmSupplierGroup}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmSupplierGroupBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="mmSupplierBeanMmSupplierMmSupplierGroup" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierSupplierCode" value="Supplier Code:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierBeanMmSupplierSupplierCode" maxLength="50" value="#{mmSupplierBean.mmSupplier.supplierCode}"/>
					<h:message for="mmSupplierBeanMmSupplierSupplierCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierSupplierFirstName" value="Supplier First Name:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierBeanMmSupplierSupplierFirstName" maxLength="100" value="#{mmSupplierBean.mmSupplier.supplierFirstName}"/>
					<h:message for="mmSupplierBeanMmSupplierSupplierFirstName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierSupplierLastName" value="Supplier Last Name:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierBeanMmSupplierSupplierLastName" maxLength="100" value="#{mmSupplierBean.mmSupplier.supplierLastName}"/>
					<h:message for="mmSupplierBeanMmSupplierSupplierLastName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierSupplierIdCardNo" value="Supplier Id Card No:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierBeanMmSupplierSupplierIdCardNo" maxLength="20" value="#{mmSupplierBean.mmSupplier.supplierIdCardNo}"/>
					<h:message for="mmSupplierBeanMmSupplierSupplierIdCardNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierSupplierSex" value="Supplier Sex:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierBeanMmSupplierSupplierSex" value="#{mmSupplierBean.mmSupplier.supplierSex}"/>
					<h:message for="mmSupplierBeanMmSupplierSupplierSex" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierAddrs" value="Mm Supplier Addrs:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmSupplierBean.mmSupplier.mmSupplierAddrs}"/>
					<h:dataTable id="mmSupplierBeanMmSupplierMmSupplierAddrs" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Addr Type"/>
							</f:facet>
							<h:link outcome="/mmSupplierAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysAddrType" value="#{forgeview:display(_item.sysAddrType)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysAddrTypeBean.converter}" id="mmSupplierAddrBeanAddSysAddrType" value="#{mmSupplierAddrBean.add.sysAddrType}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddrTypeBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="mmSupplierAddrBeanAddSysAddrType" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Addr 01"/>
							</f:facet>
							<h:link outcome="/mmSupplierAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysAddr01" value="#{forgeview:display(_item.sysAddr01)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysAddr01Bean.converter}" id="mmSupplierAddrBeanAddSysAddr01" value="#{mmSupplierAddrBean.add.sysAddr01}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddr01Bean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="mmSupplierAddrBeanAddSysAddr01" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Addr No"/>
							</f:facet>
							<h:link outcome="/mmSupplierAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierAddrNo" value="#{_item.supplierAddrNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierAddrBeanAddSupplierAddrNo" maxLength="20" value="#{mmSupplierAddrBean.add.supplierAddrNo}"/>
								<h:message for="mmSupplierAddrBeanAddSupplierAddrNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Addr Moo"/>
							</f:facet>
							<h:link outcome="/mmSupplierAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierAddrMoo" value="#{_item.supplierAddrMoo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierAddrBeanAddSupplierAddrMoo" maxLength="10" value="#{mmSupplierAddrBean.add.supplierAddrMoo}"/>
								<h:message for="mmSupplierAddrBeanAddSupplierAddrMoo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Addr Soi"/>
							</f:facet>
							<h:link outcome="/mmSupplierAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierAddrSoi" value="#{_item.supplierAddrSoi}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierAddrBeanAddSupplierAddrSoi" maxLength="100" value="#{mmSupplierAddrBean.add.supplierAddrSoi}"/>
								<h:message for="mmSupplierAddrBeanAddSupplierAddrSoi" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(mmSupplierAddrBean.added)}" id="mmSupplierBeanMmSupplierMmSupplierAddrsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{mmSupplierAddrBean.add.mmSupplier}" value="#{mmSupplierBean.mmSupplier}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierPcPurchaseOrders" value="Pc Purchase Orders:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmSupplierBean.mmSupplier.pcPurchaseOrders}"/>
					<h:dataTable id="mmSupplierBeanMmSupplierPcPurchaseOrders" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po No"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoNo" value="#{_item.poNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoNo" value="#{pcPurchaseOrderBean.add.poNo}"/>
								<h:message for="pcPurchaseOrderBeanAddPoNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Code"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoCode" value="#{_item.poCode}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoCode" maxLength="50" value="#{pcPurchaseOrderBean.add.poCode}"/>
								<h:message for="pcPurchaseOrderBeanAddPoCode" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Descr"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoDescr" value="#{_item.poDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoDescr" maxLength="100" value="#{pcPurchaseOrderBean.add.poDescr}"/>
								<h:message for="pcPurchaseOrderBeanAddPoDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Date"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoDate" value="#{_item.poDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoDate" maxLength="10" value="#{pcPurchaseOrderBean.add.poDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="pcPurchaseOrderBeanAddPoDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Discount Perc"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoDiscountPerc" value="#{_item.poDiscountPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoDiscountPerc" value="#{pcPurchaseOrderBean.add.poDiscountPerc}"/>
								<h:message for="pcPurchaseOrderBeanAddPoDiscountPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseOrderBean.added)}" id="mmSupplierBeanMmSupplierPcPurchaseOrdersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseOrderBean.add.mmSupplier}" value="#{mmSupplierBean.mmSupplier}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierTermOfPayments" value="Mm Supplier Term Of Payments:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmSupplierBean.mmSupplier.mmSupplierTermOfPayments}"/>
					<h:dataTable id="mmSupplierBeanMmSupplierMmSupplierTermOfPayments" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Term Of Payment"/>
							</f:facet>
							<h:link outcome="/mmSupplierTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysTermOfPayment" value="#{forgeview:display(_item.sysTermOfPayment)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysTermOfPaymentBean.converter}" id="mmSupplierTermOfPaymentBeanAddSysTermOfPayment" value="#{mmSupplierTermOfPaymentBean.add.sysTermOfPayment}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTermOfPaymentBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="mmSupplierTermOfPaymentBeanAddSysTermOfPayment" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Term Of Payment Effective Date"/>
							</f:facet>
							<h:link outcome="/mmSupplierTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierTermOfPaymentEffectiveDate" value="#{_item.supplierTermOfPaymentEffectiveDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierTermOfPaymentBeanAddSupplierTermOfPaymentEffectiveDate" maxLength="10" value="#{mmSupplierTermOfPaymentBean.add.supplierTermOfPaymentEffectiveDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="mmSupplierTermOfPaymentBeanAddSupplierTermOfPaymentEffectiveDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Term Of Payment Expire Date"/>
							</f:facet>
							<h:link outcome="/mmSupplierTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierTermOfPaymentExpireDate" value="#{_item.supplierTermOfPaymentExpireDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierTermOfPaymentBeanAddSupplierTermOfPaymentExpireDate" maxLength="10" value="#{mmSupplierTermOfPaymentBean.add.supplierTermOfPaymentExpireDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="mmSupplierTermOfPaymentBeanAddSupplierTermOfPaymentExpireDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Term Of Payment Is Active"/>
							</f:facet>
							<h:link outcome="/mmSupplierTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierTermOfPaymentIsActive" value="#{_item.supplierTermOfPaymentIsActive}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierTermOfPaymentBeanAddSupplierTermOfPaymentIsActive" value="#{mmSupplierTermOfPaymentBean.add.supplierTermOfPaymentIsActive}"/>
								<h:message for="mmSupplierTermOfPaymentBeanAddSupplierTermOfPaymentIsActive" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(mmSupplierTermOfPaymentBean.added)}" id="mmSupplierBeanMmSupplierMmSupplierTermOfPaymentsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{mmSupplierTermOfPaymentBean.add.mmSupplier}" value="#{mmSupplierBean.mmSupplier}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierContacts" value="Mm Supplier Contacts:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmSupplierBean.mmSupplier.mmSupplierContacts}"/>
					<h:dataTable id="mmSupplierBeanMmSupplierMmSupplierContacts" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Title Name"/>
							</f:facet>
							<h:link outcome="/mmSupplierContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysTitleName" value="#{forgeview:display(_item.sysTitleName)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysTitleNameBean.converter}" id="mmSupplierContactBeanAddSysTitleName" value="#{mmSupplierContactBean.add.sysTitleName}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTitleNameBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="mmSupplierContactBeanAddSysTitleName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Contact First Name"/>
							</f:facet>
							<h:link outcome="/mmSupplierContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierContactFirstName" value="#{_item.supplierContactFirstName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierContactBeanAddSupplierContactFirstName" maxLength="50" value="#{mmSupplierContactBean.add.supplierContactFirstName}"/>
								<h:message for="mmSupplierContactBeanAddSupplierContactFirstName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Contact Mid Name"/>
							</f:facet>
							<h:link outcome="/mmSupplierContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierContactMidName" value="#{_item.supplierContactMidName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierContactBeanAddSupplierContactMidName" maxLength="50" value="#{mmSupplierContactBean.add.supplierContactMidName}"/>
								<h:message for="mmSupplierContactBeanAddSupplierContactMidName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Contact Last Name"/>
							</f:facet>
							<h:link outcome="/mmSupplierContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierContactLastName" value="#{_item.supplierContactLastName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierContactBeanAddSupplierContactLastName" maxLength="50" value="#{mmSupplierContactBean.add.supplierContactLastName}"/>
								<h:message for="mmSupplierContactBeanAddSupplierContactLastName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Contact Phone No"/>
							</f:facet>
							<h:link outcome="/mmSupplierContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierContactPhoneNo" value="#{_item.supplierContactPhoneNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierContactBeanAddSupplierContactPhoneNo" maxLength="20" value="#{mmSupplierContactBean.add.supplierContactPhoneNo}"/>
								<h:message for="mmSupplierContactBeanAddSupplierContactPhoneNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(mmSupplierContactBean.added)}" id="mmSupplierBeanMmSupplierMmSupplierContactsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{mmSupplierContactBean.add.mmSupplier}" value="#{mmSupplierBean.mmSupplier}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierPcPurchaseReqs" value="Pc Purchase Reqs:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmSupplierBean.mmSupplier.pcPurchaseReqs}"/>
					<h:dataTable id="mmSupplierBeanMmSupplierPcPurchaseReqs" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr No"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReq/view">
								<f:param name="id" value="#{_item.prNo}"/>
								<h:outputText id="itemPrNo" value="#{_item.prNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqBeanAddPrNo" value="#{pcPurchaseReqBean.add.prNo}"/>
								<h:message for="pcPurchaseReqBeanAddPrNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Code"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReq/view">
								<f:param name="id" value="#{_item.prNo}"/>
								<h:outputText id="itemPrCode" value="#{_item.prCode}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqBeanAddPrCode" maxLength="50" value="#{pcPurchaseReqBean.add.prCode}"/>
								<h:message for="pcPurchaseReqBeanAddPrCode" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Descr"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReq/view">
								<f:param name="id" value="#{_item.prNo}"/>
								<h:outputText id="itemPrDescr" value="#{_item.prDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqBeanAddPrDescr" maxLength="100" value="#{pcPurchaseReqBean.add.prDescr}"/>
								<h:message for="pcPurchaseReqBeanAddPrDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Date"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReq/view">
								<f:param name="id" value="#{_item.prNo}"/>
								<h:outputText id="itemPrDate" value="#{_item.prDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqBeanAddPrDate" maxLength="10" value="#{pcPurchaseReqBean.add.prDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="pcPurchaseReqBeanAddPrDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Discount Perc"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReq/view">
								<f:param name="id" value="#{_item.prNo}"/>
								<h:outputText id="itemPrDiscountPerc" value="#{_item.prDiscountPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqBeanAddPrDiscountPerc" value="#{pcPurchaseReqBean.add.prDiscountPerc}"/>
								<h:message for="pcPurchaseReqBeanAddPrDiscountPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseReqBean.added)}" id="mmSupplierBeanMmSupplierPcPurchaseReqsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseReqBean.add.mmSupplier}" value="#{mmSupplierBean.mmSupplier}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierDiscounts" value="Mm Supplier Discounts:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmSupplierBean.mmSupplier.mmSupplierDiscounts}"/>
					<h:dataTable id="mmSupplierBeanMmSupplierMmSupplierDiscounts" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Discount Perc"/>
							</f:facet>
							<h:link outcome="/mmSupplierDiscount/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierDiscountPerc" value="#{_item.supplierDiscountPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierDiscountBeanAddSupplierDiscountPerc" value="#{mmSupplierDiscountBean.add.supplierDiscountPerc}"/>
								<h:message for="mmSupplierDiscountBeanAddSupplierDiscountPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Discount Effective Date"/>
							</f:facet>
							<h:link outcome="/mmSupplierDiscount/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierDiscountEffectiveDate" value="#{_item.supplierDiscountEffectiveDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierDiscountBeanAddSupplierDiscountEffectiveDate" maxLength="10" value="#{mmSupplierDiscountBean.add.supplierDiscountEffectiveDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="mmSupplierDiscountBeanAddSupplierDiscountEffectiveDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Discount Expire Date"/>
							</f:facet>
							<h:link outcome="/mmSupplierDiscount/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierDiscountExpireDate" value="#{_item.supplierDiscountExpireDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierDiscountBeanAddSupplierDiscountExpireDate" maxLength="10" value="#{mmSupplierDiscountBean.add.supplierDiscountExpireDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="mmSupplierDiscountBeanAddSupplierDiscountExpireDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Discount Is Active"/>
							</f:facet>
							<h:link outcome="/mmSupplierDiscount/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierDiscountIsActive" value="#{_item.supplierDiscountIsActive}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierDiscountBeanAddSupplierDiscountIsActive" value="#{mmSupplierDiscountBean.add.supplierDiscountIsActive}"/>
								<h:message for="mmSupplierDiscountBeanAddSupplierDiscountIsActive" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(mmSupplierDiscountBean.added)}" id="mmSupplierBeanMmSupplierMmSupplierDiscountsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{mmSupplierDiscountBean.add.mmSupplier}" value="#{mmSupplierBean.mmSupplier}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{mmSupplierBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty mmSupplierBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{mmSupplierBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{mmSupplierBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>